package kr.saeildamil.androidstudy.ch17;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class ActivityLifeCycle extends Activity {
	static final String TAG = "Activity Life Cycle";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		Log.i(TAG, "ActivityLifeCycle-onCreate()");
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch17_activitylifecycle);
	}

	public void mOnClick(View v) {
		Log.i(TAG, "Child Activity Call");
		startActivity(new Intent(this, ActChild.class));

	}

	@Override
	protected void onStart() {
		Log.i(TAG, "ActivityLifeCycle-onStart()");
		super.onStart();
	}

	@Override
	protected void onDestroy() {
		Log.i(TAG, "ActivityLifeCycle-onDestroy()");
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		Log.i(TAG, "ActivityLifeCycle-onPause()");
		super.onPause();
	}

	@Override
	protected void onRestart() {
		Log.i(TAG, "ActivityLifeCycle-onRestart()");
		super.onRestart();
	}

	@Override
	protected void onResume() {
		Log.i(TAG, "ActivityLifeCycle-onResume()");
		super.onResume();
	}

	@Override
	protected void onStop() {
		Log.i(TAG, "ActivityLifeCycle-onStop()");
		super.onStop();
	}

}
